package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.reggie.domain.Dish;

import java.util.List;

public interface DishService {


    Page<Dish> findByPage(String name, Integer pageNum, Integer pageSize);

    void save(Dish dish);

    Dish findById( Long id);


    void update(Dish dish);


    void deleteByIds(List<Long> ids);


    void updateStatus(Integer status, List<Long> ids);

    //List<Dish> findList(Long categoryId, Integer status);

    List<Dish> findList(Long categoryId, Integer status,String name);

}
